{include file="public/_meta" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>团队业绩 <span class="c-gray en">&gt;</span> 业绩明细<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>

</nav>
<div class="page-container">
    <div class="text-c">
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">

        <span class="l">
        <a href="javascript:;" onclick="myAccount({$idy})" class="btn btn-primary radius">
            <i class="Hui-iconfont">&#xe600;</i> 查看原团队信息</a>
    </span>
        <span class="r">
            团队总业绩：<strong>{$money + $a}</strong> 元 &nbsp;&nbsp; &nbsp;&nbsp;
            现团队业绩：<strong>{$money}</strong> 元  &nbsp;&nbsp; &nbsp;&nbsp;
            原团队业绩：<strong>{$a}</strong> 元  &nbsp;&nbsp; &nbsp;&nbsp;
    </span>
    </div>



    <div class="mt-20">
        <table class="table table-border  table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <td>用户ID</td>
                <th>名称</th>
                <th>手机号</th>
                <th>累计消费</th>
            </tr>
            </thead>
            <tbody>
            {volist name='list' id="vo"}
            <tr class="text-c">
                <td>{$vo.id}</td>
                <td>{$vo.us_nickname}</td>
                <td>{$vo.us_tel}</td>
                <td>{$vo.teamMoney}</td>
            </tr>
            {/volist}
            </tbody>
        </table>

    </div>
</div>
    {include file="public/_footer" /}
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
    <script type="text/javascript">
        $('select[name="wa_type"]').val({$Request.get.wa_type});


        function myAccount(id){
            var url = "{:url('Center/teams')}?id="+id;
            layer_show('明细',url);
        }

        function create(id,url,key){
            var url = "{:url('"+url+"')}?id="+id;
            creatIframe(url,key);
        }
        function cancelbi(id){
            layer.confirm('确定要取消该奖励吗？', {
                btn: ['确定', '取消']
            }, function(index, layero){
                $.ajax({
                    type: "post",
                    url: "{:url('profit/cancelbi')}",
                    data: {id:id},
                    success: function(data) {
                        layer.msg(data.msg);
                        if(data.code){
                            setTimeout("window.location='';",1000);
                            //location.href = '';
                        }
                    }
                });
            });
        }
        function selecttime(flag){
            if(flag==1){
                var endTime = $("#countTimeend").val();
                if(endTime != ""){
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:endTime})}else{
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})}
            }else{
                var startTime = $("#countTimestart").val();
                if(startTime != ""){
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:startTime})}else{
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})}
            }
        }
    </script>
</body>
